package com.xiaoshuidi.cloud.module.rooms.service;


import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.rentalspace.vo.*;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomel.vo.RoomelCreateReqVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomel.vo.RoomelQueryReqVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentExportReq;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipment.vo.RoomEquipmentExportRespVo;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomRentalSpace;
import com.xiaoshuidi.cloud.module.rooms.pojo.roomel.RentalSpaceelEntity;
import org.elasticsearch.action.bulk.BulkResponse;
import org.zxp.esclientrhl.repository.PageList;

import java.util.List;
import java.util.Map;

/**
 * 
 * @Author: lss
 * @CreateTime: 2023-03-15 12:42
 * @Version: 1.0
 */
public interface IRentalSpaceService {

    Boolean listadd(List<RentalSpaceCreateReqVO> reqVOS);

    PageList<RentalSpaceelEntity> queryPage(int currentPage, int pageSize, String searchbox, Long id, String name, Long apartmentId, String type, String rentStatus);

    Long addRentalSpace(RentalSpaceCreateReqVO reqVO);

    Boolean updateRentalSpace(RentalSpaceUpdateReqVO reqVO);

    Boolean updateEs(RentalSpaceUpdateReqVO reqVO);

    Map<String,Object> queryHouseStateSum(String searchbox,Long id,String name,Long apartmentId,String type);

    List<RentalSpaceExportRespVO> exportRentalSpace(RentalSpaceExportReqVO exportReqVO);

    RoomRentalSpace queryById(Integer id);

    Boolean deleteByid(Integer id);
    Boolean deleteESByid(Integer id);

}
